#ifndef NOTIFICATION_H
#define NOTIFICATION_H

#include <QtCore/QObject>
#include "database.h"

namespace acidone
{

class NotificationManager : public QObject
{
	Q_OBJECT
public:
	NotificationManager(Database* database, QObject* parent);
	~NotificationManager();

signals:
	void tasksStarted(Database::TaskList tasks);

private slots:
	void databaseChanged();
	void reloadTasks();
	void checkTasks();

private:

	Database* m_database;
	bool m_dirtyDatabase;

	Database::TaskList m_watchedTasks;
	QDateTime m_lastCheckTime;
};

}

#endif // NOTIFICATION_H
